<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class CommissionFlow extends TimeModel
{

    protected $name = "commission_flow";

    protected $deleteTime = "delete_time";

    public function commissionType()
    {
        return $this->belongsTo('CommissionType', 'commission_type');
    }

    public function theOrder()
    {
        return $this->belongsTo('Order', 'order_id');
    }

    public function groupMaster()
    {
        return $this->belongsTo('GroupMaster', 'master_id');
    }

    public function getCommissionStatusList()
    {
        return ['0'=>'待结算','1'=>'已结算','2'=>'已拒绝',];
    }
}